package com.sias.springboot;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author 吴文杰
 * @version 1.0
 * @since 2023/5/31 14:00
 */
@Component
@Slf4j
public class Component2 {

  private static final Logger LOG = LoggerFactory.getLogger(Component2.class);

  @EventListener
  public void test(UserRegisteredEvent userRegisteredEvent){
    LOG.debug("{}",userRegisteredEvent);
    log.debug("发送短信");
  }
}
